package com.huicoo.forestmanager.ui.patrol.fireAlarm.contract;

import com.huicoo.forestmanager.base.BasePresenter;
import com.huicoo.forestmanager.network.bean.alarm.AlarmBean;
import com.huicoo.forestmanager.network.bean.patrol.AttachmentEntity;
import com.huicoo.forestmanager.network.bean.patrol.UploadFileBean;

import java.util.HashMap;

import retrofit2.Call;

public interface AlarmContract {

    interface View {
        void uploadFileSuccess(UploadFileBean.UploadFileData Data, int attachmentType, int during);

        void alarmSuccess();

        void fail(String msg);
    }

    interface Presenter extends BasePresenter {
        void uploadFile(HashMap<String, String> params, AttachmentEntity attachment);

        void alarm(HashMap<String, String> params);
    }

    interface Model {
        Call<UploadFileBean> uploadFile(HashMap<String, String> params, AttachmentEntity attachment);

        Call<AlarmBean> alarm(HashMap<String, String> params);
    }
}
